﻿namespace SugarTank.Mobile.CommonTypes.Phone
{
    using Microsoft.Phone.Tasks;

    public class MarketplaceSearch
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="MarketplaceSearch"/> class.
        /// </summary>
        /// <param name="query">The query.</param>
        /// <param name="contentType">Type of the content.</param>
        public MarketplaceSearch(string query, MarketplaceContentType contentType)
        {
            this.Query = query;
            this.ContentType = contentType;
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="MarketplaceSearch"/> class.
        /// </summary>
        /// <param name="query">The query.</param>
        public MarketplaceSearch(string query)
        {
            this.Query = query;
            this.ContentType = MarketplaceContentType.Applications;
        }

        /// <summary>
        /// Gets or sets the query.
        /// </summary>
        /// <value>The query.</value>
        public string Query { get; private set; }

        /// <summary>
        /// Gets or sets the type of the content.
        /// </summary>
        /// <value>The type of the content.</value>
        public MarketplaceContentType ContentType { get; private set; }
    }
}